home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0793july.archive
/
000053_crash!kirk.safb.af.mil!BWILLS_Thu, 22 Jul 93 19:46:38 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
2KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Thu, 22 Jul 93 19:46:38 PST
Received: from kirk.safb.af.mil by crash.cts.com with smtp
(Smail3.1.28.1 #15) id m0oJBiW-0000fAC; Thu, 22 Jul 93 18:14 PDT
Message-Id: <m0oJBiW-0000fAC@crash.cts.com>
Date: 22 Jul 93 20:12:00 CST
From: "Barry D. Wills" <BWILLS@kirk.safb.af.mil>
To: "amigae" <amigae@bkhouse.cts.com>
Subject: re: Help with DateStamp
/***
I hope someone can help me with this problem...I can't seem to get
DateStamp and DateToStr working right <sigh>. I keep on getting an
'illegal use of/reference to object' on this line:
date.stamp := New(SIZEOF datestamp)
----8<----8<---- ***/
MODULE 'dos/dos', 'dos/datetime'
PROC main()
DEF date : PTR TO datetime,
s[10] : ARRAY OF CHAR
date := New(SIZEOF datetime)
/*===============================================*/
/* REPLACE THESE TWO LINES... */
/* date.stamp := New(SIZEOF datestamp) */
/* date.stamp := DateStamp(date.stamp) */
/*===============================================*/
/* ...WITH THIS ONE... */
VOID DateStamp(date.stamp)
/*===============================================*/
/* BECAUSE... [Partial output from ShowModule:]
(---) OBJECT datetime
( 0) stamp:substructure == 12 bytes (this is automatic,
( 12) format:CHAR no need to allocate!)
( 13) flags:CHAR
( 14) strday:LONG
( 18) strdate:LONG
( 22) strtime:LONG
(---) ENDOBJECT /* SIZEOF=26 */
=================================================*/
date.strdate := s
DateToStr(date)
WriteF('date: \s\n',s)
ENDPROC